<template>
  <div id="app">
    <slot name="top"></slot>
    <div class="content">
      <slot name="content"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    data: Array
  }
}
</script>

<style lang="less" scoped>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
#app {
  float: left;
  width: 250px;
  background-color: #fff;
  border: 1px solid #000;

  .top1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 30px;
    padding: 0 20px;
    background-color: skyblue;
  }
  .content {
    .item {
      padding: 0 20px;
      width: 100%;
      float: left;
      border-bottom: 1px solid #000;
      p {
        float: left;

        margin-bottom: 5px;
      }
      .name {
        float: left;
        border: none;
      }
      .guanzhu {
        float: right;
        border: none;
      }
    }
  }
}
</style>
